var list = new List<IMyCustomType>{ new MyCustomTypeOne(), new MyCustomTypeTwo(), new MyCustomTypeThree() };